<template>
	<view class="home-channel">
		<up-sticky bgColor="#fff">
			<up-tabs :list="list" v-model:current="current"></up-tabs>
		</up-sticky>
	</view>	
</template>

<script setup lang="ts">
import { reactive, ref } from 'vue'
import { homeChannelInfo } from '@/request/api.ts'
let list: Array<{}> = reactive([])
let current = ref(1)
const initData = async () => {
	const data: Array<{}> = await homeChannelInfo()
	list.push(...data)
}
initData()
</script>

<style scoped lang="scss">
	.home-channel{
		height: 40px;
	}
</style>
